import scrapy


class MovieSpider(scrapy.Spider):
    name = "movie"
    # allowed_domains = ["baidu.com"]
    start_urls = ["https://zgdypf.zgdypw.cn/"]

    def parse(self, response):
        items = response.xpath('//tr[@class="" or @class="has-bg"]')
        for item in items:
            name = item.xpath('.//p[@class="movie-name"]/text()').get()
            money = item.xpath('.//p[@class="movie-info"]/text()').get()

            print(name,money)
